package cn.raven.system.service.impl;

import cn.raven.basic.service.impl.BaseServiceImpl;
import cn.raven.system.domain.SystemDicDetail;
import cn.raven.system.mapper.SystemDicDetailMapper;
import cn.raven.system.mapper.SystemDicTypeMapper;
import cn.raven.system.service.ISystemDicDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**

* @Description: 数据字典类型实现类
* @Author: king
* @Version: 1.0
* @Date:  2022/6/29 9:49
  */
@Service
//只读事务
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class SystemDicDetailServiceImpl extends BaseServiceImpl<SystemDicDetail> implements ISystemDicDetailService {
    @Autowired
    private SystemDicDetailMapper SystemDicDetailMapper;

    /** 
    * @Title: delTypeId
    * @Description: 根据主表传过来的id对应外键id来删除types_id=id的
    * @Author: king
    * @Version: 1.0
    * @Date:  2022/6/29 22:06  
    * @Parameters: [typeId]
    * @Return void
      */
    @Override
    public void delTypeId(Long typeId) {
        SystemDicDetailMapper.delTypeId(typeId);
    }
}
